package com.music.service.impl;

import com.alipay.api.AlipayApiException;
import com.music.config.Alipay;
import com.music.entity.AlipayBean;
import com.music.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 名一
 * @ClassName PayServiceImpl
 * @description: TODO
 * @datetime 2022年 07月 11日 18:09
 * @version: 1.0
 */
@Service
public class PayServiceImpl implements PayService {
    @Autowired
    private Alipay alipay;

    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return alipay.pay(alipayBean);
    }
}
